package com.weipai.education.service;

import com.weipai.education.model.ApplicationUser;
import com.weipai.education.model.User;
import com.weipai.education.model.UserAddress;
import com.weipai.education.model.api.Response;

import java.math.BigDecimal;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/10 15:51
 */
public interface UserService {
    
    //经销商保存--修改
    Response save(User user);

    //更改经销商状态
    Response changeStatus(String id);

    //分页查询
    Response list(Integer page, Integer size, Integer userCateId, String key, String type);

    //分页查询
    Response Mylist(Integer page, Integer size, Integer userCateId, String key, String type);

    //审核经销商
    Response isAudit(String id, String isAudit);

    //批量删除
    Response batchDeleteById(String[] id);

    //申请经销商
    Response applicationUser(ApplicationUser applicationUser);

    //检索账号
    Response searchAccountNumber(String type, String accountNumber);
    
    //加盟商申请列表--所有
    Response applicationUserList(Integer page, Integer size, Integer userCateId, String key, String isAudit, String type);

    //获取用户的信息
    Response getUserInfo();

    //更新user的头像和昵称
    Response updateUser(String nickname, String headImg);

    //更改密码
    Response updatePassword(String oldPassword, String newPassword, String newTwoPassword);

    //获取用户地址列表
    Response getUserAddress(String userId);

    //收货地址的新增--修改
    Response userAddressSave(UserAddress userAddress);

    //删除地址
    Response deleteUserAddress(String id);

    //权限账号列表
    Response userList(Integer page, Integer size, Integer roleId, String key);

    //账号的保存修改
    Response userSave(String mobile, Integer roleId, String password, String nickname, String id);

    Response updatePasswordPc(String userId, String newPassword, String newTwoPassword);

    Response inventoryUserList(Integer page, Integer size, Integer userCateId, String key);

    //添加消息记录
    void addMessage(User user, BigDecimal price,Integer userId);
}
